import axios from '../utils/axios';
const baseURL = '/api/diary/';

//新增日记
export const addDiaryApi = (data: any) => {
  return axios.post(`${baseURL}addDiary`, data);
}

//获取日记列表
export const getDiaryApi = (data: any) => {
  return axios.post(`${baseURL}getDiary`, data);
}

//删除日记
export const deleteDiaryApi = (data: any) => {
  return axios.post(`${baseURL}deleteDiary`, data);
}
